package com.tuyou.springboot.mybatis.mapper;

import com.tuyou.springboot.comon.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User getById(long id);

    List<User> getAll();

    int save(User user);

    int update(User user);

    int delete(long id);

    void truncate();
}